package neuralmusic.brain.ga;


import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class Gene {
	
	List<Token> tokens=new ArrayList<Token>();

	public void add(Token tok) {
		tokens.add(tok);		
	}

	public void addAll(List<Token> params) {
		tokens.addAll(params);	
	}

	public void print(PrintStream out){
		for (Token t:tokens){
			t.print(out);
			
		}
		
	}
	
	public Iterator<Token> iterator(){
		return tokens.iterator();
	}
}
